using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using BUS;

namespace Presentation
{
    public partial class BM62GUI : Form
    {
        public BM62GUI()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            dataGridView1.DataSource = null;
            dataGridView1.Rows.Clear();
            int thang = int.Parse(this.textBox1.Text.ToString());
            List<String> BienSo=new List<string>();
            List<int> DinhMuc = new List<int>();
            List<int> QuangDuong = new List<int>();
            XeBUS.TimNhienLieuTheoThang(thang, BienSo, QuangDuong,DinhMuc);
            for (int i = 0; i < BienSo.Count; i++)
                dataGridView1.Rows.Add((i + 1).ToString(), BienSo[i], QuangDuong[i], DinhMuc[i], (QuangDuong[i] * 10));
        }
    }
}